<?php

    // Show the menu only if user is logged in
    if (isUserLoggedIn() == true) {
    	
    	global $db_manager;
    	$xadmin = new x_admin($db_manager);
    	$result = $xadmin->get_public_ip();
    	if ($result) {
    		$public_ip = $result[0]["ip_publica"];
    	} else {
    		$public_ip = "";
    	}

	    $Skinner=new Skinner();
	    $Skinner->setSkin($skins_path."left_pane");
	    $Skinner->registerVariable("files_path", $files_path);
	    $Skinner->registerVariable("admin_root", $admin_root);
	    $Skinner->registerVariable("lbl_public_ip", $labels["LBL_PUBLIC_IP"]);
	    $Skinner->registerVariable("public_ip", $public_ip);
	    $Skinner->registerVariable("lbl_add", $labels["LBL_IP"]);
	    $Skinner->registerVariable("lbl_list", $labels["LBL_IP"]);
	    $Skinner->registerVariable("lbl_delete", $labels["LBL_IP"]);
	    $Skinner->registerVariable("lbl_users", $labels["LBL_USERS"]);
	    $Skinner->registerVariable("lbl_unauthorised_macs", $labels["LBL_UNAUTHORISED_MACS"]);
	    $Skinner->registerVariable("lbl_external_ip", $labels["LBL_EXTERNAL_IP"]);
	    $Skinner->registerVariable("lbl_administrator", $labels["LBL_ADMINISTRATOR"]);
		$Skinner->registerVariable("lbl_change_password", $labels["LBL_CHANGE_PASSWORD"]);
	    $Skinner->registerVariable("lbl_view_log", $labels["LBL_VIEW_LOG"]);
        $Skinner->registerVariable("lbl_clear_log", $labels["LBL_CLEAR_LOG"]);
	    $Skinner->registerVariable("lbl_check_cons", $labels["LBL_CHECK_CONS"]);
        
	    $left_pane=$Skinner->doSubstitution_FAST();
    
    } else {

    	$left_pane="";
    
    }
    
?>